#include "../MenuMatricula.h"

void MenuMatricula::configMenu(Menu* d)
{
    this->dad = d;
}

char MenuMatricula::showMenu()
{
    char opcode = ' ';
    cout << "\n+---------------------------------------+"
            "\n|          Menu Matricula               |"
            "\n+---------------------------------------+"
            "\n|                                       |"
            "\n| [g] Listar grade                      |"
            "\n| [a] Acrescentar turma                 |"
            "\n| [r] Retirar turma                     |"
            "\n|                                       |"
            "\n| [v] Voltar                            |"
            "\n|                                       |"
            "\n+---------------------------------------+"
            "\n"
            "\nOpcao escolhida: ";
    cin >> opcode;
    return opcode;
}

Menu* MenuMatricula::actionMenu(char opcode)
{
    switch (opcode)
    {
        case 'm' :
            return NULL;
            break;
        case 'h' :
            return NULL;
            break;
        case 'e' :
            return NULL;
            break;
        case 'v' :
            return this->dad;
            break;
        default :
            return NULL;
            break;
    }
}
